﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    assembly="SAKS.Models"
    namespace="SAKS.Models">
  <class name="DocumentInfo" lazy="false">
    <id name="Id">
      <generator class ="guid.comb" />
    </id>
    <version name="Version" />

    <property name="Name" not-null="true"/>
    <property name="SerialNumber"/>

    <property name="CreatePurpose"/>
    <property name="SecurityLevel"/>
    <property name="PrimaryAuthor"/>
    <property name="Checker"/>
    <property name="CompletedDate"/>
    <property name="ArchivedDate"/>
    <property name="Remarks"/>
    <property name="CreatedDate"/>
    <property name="ProjectId"/>
    <property name="AchievementId"/>
    <property name="FileId" />
    <many-to-one name="DocFile" class="SAKS.Models.DocFile,SAKS.Models" cascade="all-delete-orphan"
                 lazy="proxy" column="DocumentFileId" unique="true" />

  </class>

</hibernate-mapping>